{include file="header.tpl"}
{if $smarty.get.process}
{if $core->database->addUser($smarty.post.username,$smarty.post.password,$smarty.post.email) == 1}
Registration successful, <a href="./?n=login">Login</a>
{else}
Registration failed.
{/if}
{/if}
<div class="page_header">Register</div>
<p>
<form name="frmregister" method="post" action="./?n=register&process=1">
<table class="inline">
<tr>
<th>Username</th>
<td><input type="text" name="username" /></td>
</tr>
<tr>
<th>Password</th>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<th>Email</th>
<td><input type="text" name="email" /></td>
</tr>
</table>
<input type="submit" name="Submit" value="Register" />
</form>
</p>
{include file="footer.tpl"}
